<%@ Page Language="VB" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="false" CodeFile="LocalProgramOffices.aspx.vb" Inherits="Admin_LocalProgramOffices" title="Admin - Application Settings - Local Program Offices" %>
<%@ Register Src="SubNavControls/AppSubNavControl.ascx" TagName="AppSubNavControl" TagPrefix="uc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<uc1:AppSubNavControl ID="SubNavCtrl" runat="server" />


    <asp:ObjectDataSource ID="ProgramOfficesObjectDataSource" runat="server"
        DeleteMethod="RemoveInstance" InsertMethod="SaveInstance" SelectMethod="ListBySort"
        TypeName="Cdm.DataCore.Entities.LocalProgram" DataObjectTypeName="Cdm.DataCore.Entities.LocalProgram"
        UpdateMethod="UpdateInstance" SortParameterName="sortExpr">
    </asp:ObjectDataSource>


<table cellpadding="0" cellspacing="0" border="0">
       <tr><td width="20px" rowspan="4"></td><td>
                <h1><a id="pagecontent">Admin - Application Settings - <asp:Label ID="LocalProgramLabel" runat="server">Local Program Office</asp:Label> Setup</a></h1>
                </td>
        </tr>
        <tr>
           <td>
           <cc2:ScrollingGridView ID="ProgramOfficesScrollingGridView" runat="server" IsFixedColumn="true" CssClass="gridOffset" AutoGenerateColumns="False" ToolTip="170"
            DataSourceID="ProgramOfficesObjectDataSource" DataKeyNames="LocalProgramId" CellPadding="5" BorderColor="#21334B" 
                BorderStyle="Solid" GridLines="Vertical" AllowSorting="true">
        <HeaderStyle  CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
        <RowStyle CssClass="adminColumnStyle" />
        <Columns>
            <asp:TemplateField HeaderText="Program Name" SortExpression="LocalProgramName">
                <ItemTemplate><%# Eval("LocalProgramName") %></ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="ProgramNameTextBox" runat="Server" Text='<%# Bind("LocalProgramName") %>' ToolTip="edit local program name" width="350px"></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle Width="400px" />
                 <HeaderStyle Width="416px" />
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" HeaderText="Action" AccessibleHeaderText="Action">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
                <HeaderStyle Width="110px" />
            </asp:CommandField>
        </Columns>
        <AlternatingRowStyle BackColor="#E8ECF4" />
           </cc2:ScrollingGridView>
           </td>    
        </tr>
        </table>
  
</asp:Content>
<asp:Content ID="FixedContent" runat="server" ContentPlaceHolderID="ContentPlaceHolderFixedAdmin">
  <table width="600px" border="0">    
    <tr><td class="adminHeaderStyle">Add New Local Program Office:<asp:TextBox ID="NewLocalProgramName" runat="server"></asp:TextBox>
    <asp:Button ID="AddLocalProgramButton" runat="server" Text="Add" /></td><td>&nbsp;</td></tr>
    </table>
</asp:Content>

